package com.hamster.crmpre.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hamster.crmpre.pojo.ProjectCourse;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

/**
 * 项目中的课程mapper
 * @author Tarry
 * @create 2019/12/24 13:55
 */
@Repository
@Mapper
public interface ProjectCourseMapper extends BaseMapper<ProjectCourse> {
    /**
     * 逻辑删除
     * @param id
     */
    @Update("update project_course set del = 1 where id = #{id}")
    void deleteTag(String id);
}
